import request from '@/utils/request'

// 查询日记条目主列表
export function listEntries(query) {
  return request({
    url: '/base/entries/list',
    method: 'get',
    params: query
  })
}

// 查询日记条目主详细
export function getEntries(entryId) {
  return request({
    url: '/base/entries/' + entryId,
    method: 'get'
  })
}

// 新增日记条目主
export function addEntries(data) {
  return request({
    url: '/base/entries',
    method: 'post',
    data: data
  })
}

// 修改日记条目主
export function updateEntries(data) {
  return request({
    url: '/base/entries',
    method: 'put',
    data: data
  })
}

// 删除日记条目主
export function delEntries(entryId) {
  return request({
    url: '/base/entries/' + entryId,
    method: 'delete'
  })
}
